package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(resultMap = "businessStaff")
public class BusinessStaff implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id; //主键，不是自增，是雪花ID
    private int status; //状态0离职、1在职
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime; //创建时间

    private String staffId; //员工ID

    private String businessId; //商户ID

    private String zmPicture; //证件照正面

    private String fmPicture; //证件照反面

    @TableField(exist = false)
    private Business business ;

    @TableField(exist = false)
    private Staff staff ;
}
